
<style>
    html{
        width: 100vw;
        height: 100vh;
        background-image: linear-gradient( 45deg, #0fd850 0%, #f9f047 100%);
    }

    form{
        position: absolute;
        top: 30%;
        left: 40%;
        border: 1px solid purple;
        padding: 30px;
        border-radius: 6px;
    }

</style>

<form action="doRegister.php" method="post" enctype="multipart/form-data">
    <label>
        用户名：
        <input name="userName">
    </label> <br>
    <label>
        密 &nbsp; 码：
        <input name="userPwd" type="password">
    </label> <br>
    <label>
        头&emsp;像：
        <input name="profile" type="file">
    </label> <br>
    <label>
        简&emsp;介：
        <textarea name="note"></textarea>
    </label> <br>
    <input type="reset"> <input type="submit" value="注册信息">
    <button type="button" onclick="window.location.href='login.php'" >去登录</button>
</form>